package com.chixing.service;

import com.chixing.entity.Myorder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chixing.util.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author smith
 * @since 2025-09-22
 */
public interface IMyorderService {
    //通过id查订单
    public Result getById(Integer orderId);
    //订单确认
    public  Result getProductMyCouponAddress(Integer userId,Integer proId);
    //点击支付添加订单到数据库
    public Result save(Myorder myorder);
    //修改订单状态
    public Result updateStatus(Integer myOrderId,Integer myOrderStatus);

    public Result getByOrderNumber(String orderNum);
    //查看某个订单的详细信息
    public Result getOrderDetail(Integer orderId);
    //查看某个用户的某个状态的所有订单
    public Result getByPageAndStatus(Integer userId,Integer orderStatus,Integer pageNUmber);

}
